
import java.util.Arrays;

public class Transf {

    public static void main(String[] args) {
//        使用toTring将数组转化为字符串
        int[] arr = {1,2,3,4,5,6};
        String newArr = Arrays.toString(arr);
        System.out.println(newArr);
    }
}
